package lemon3.dao;

import java.sql.Connection;
import java.sql.Date;
import java.util.List;

/**
 *
 */
public interface CustomerDAO {
    /**
     * @Description
     * @param connection
     * @param customer
     */
    void insert(Connection connection, Customer customer);

    void deleteById(Connection connection, int id);

    void update(Connection connection, Customer customer);

    Customer getCustomerById(Connection connection, int id);

    List<Customer> getAll(Connection connection);

    Long getCount(Connection connection);

    Date getMaxBirth(Connection connection);
}
